<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>仓库信息</title>
  <link rel="stylesheet" href="../../../elementUI/index.css" />
  <link rel="stylesheet" href="../../../css/index.css" />
</head>

<body>
  <div id="app" class="minWidth">
    <el-form :inline="true">
      <el-form-item>
        <el-button type="danger">批量删除</el-button>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="addEnterprise">添加仓库信息</el-button>
      </el-form-item>
      <el-form-item>
        <el-input placeholder="请输入内容" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary">查询</el-button>
      </el-form-item>
    </el-form>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column align="center" label="序号" type="index" width="100">
      </el-table-column>
      <el-table-column prop="Warehouse_Name" align="center" label="仓库名称">
      </el-table-column>
      <el-table-column prop="Enterprise_Name" align="center" label="所属企业">
      </el-table-column>
      <el-table-column prop="Warehouse_Address" align="center" label="仓库地址"></el-table-column>
      <el-table-column align="center" label="仓库状态">
        <template v-slot="{row}">
          <el-tag v-if="row.Warehouse_Type=='0'" type="success">自用</el-tag>
          <el-tag v-else type="info">公用</el-tag>
        </template>
      </el-table-column>
      <el-table-column align="center" label="操作">
        <template v-slot="{row}">
          <el-button @click="FindMore(row.Warehouse_SerialNumber)" type="primary">查看仓库详情</el-button>
        </template>
      </el-table-column>
    </el-table>
    <el-pagination
      background
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="form.page"
      :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total" style="position: fixed;bottom: 0;">
    </el-pagination>
  </div>
  <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../js/utils.js"></script>
  <script type="text/javascript" src="./js/Supplier.js"></script>
</body>

</html>